# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: media-libs/alac/alac-9999.ebuild,v 1.0 2013/02/16 21:50:00 itspec.ru Exp $

EAPI=5
inherit eutils git-2

DESCRIPTION="Apple Lossless Audio Codec"
HOMEPAGE="http://alac.macosforge.org/"
EGIT_REPO_URI="git://git.macosforge.org/alac.git"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

src_unpack() {
    git-2_src_unpack
}

src_compile() {
    cd ${S}/codec
    emake || die "compile failed"
}

src_install() {
    dolib.a ${S}/codec/libalac.a || die "install failed"
    insinto /usr/include/alac
    doins ${S}/codec/*.h || die "install headers failed"
    dodoc ALACMagicCookieDescription.txt ReadMe.txt
}
